Other Classes
The following classes are available globally.
-
A single cross street along a step.
See moreDeclaration
Swift
public class Intersection: NSObject, NSSecureCoding
-
A lane on the road approaching an intersection.
See moreDeclaration
Swift
public class Lane: NSObject, NSSecureCoding
-
A
RouteOptionsV4
object is a structure that specifies the criteria for results returned by the Mapbox Directions API v4.Pass an instance of this class into the
See moreDirections.calculate(_:completionHandler:)
method.Declaration
Swift
open class RouteOptionsV4: RouteOptions
-
An instruction about an upcoming
RouteStep
’s maneuver, optimized for speech synthesis.The instruction is provided in two formats: plain text and text marked up according to the Speech Synthesis Markup Language (SSML). Use a speech synthesizer such as
AVSpeechSynthesizer
or Amazon Polly to read aloud the instruction.The
See moredistanceAlongStep
property is measured from the beginning of the step associated with this object. By contrast, thetext
andssmlText
properties refer to the details in the following step. It is also possible for the instruction to refer to two following steps simultaneously when needed for safe navigation.Declaration
Swift
open class SpokenInstruction: NSObject, NSSecureCoding